#define D2D_INPUT_COUNT 0
#define D2D_REQUIRES_SCENE_POSITION
//引入d2d效果帮助库
#include "d2d1effecthelpers.hlsli"

float2 size;
//声明着色器
D2D_PS_ENTRY(main) {
	//获取当前像素的相对位置
	float2 pos = D2DGetScenePosition().xy;
	float r = pos.x / size.x;
	float g = pos.y / size.y;
	return float4(r,g,0 ,1);
}
